/* eslint-disable */
// @ts-ignore
import request from '@/utils/request';
import { CustomRequestOptions } from '@/interceptors/request';

import * as API from './types';

/** 详情 GET /tourism/client/c/wxticket/info */
export async function detailUsingGet4({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.detailUsingGET4Params;
  options?: CustomRequestOptions;
}) {
  return request<API.CommonResultTicket_>('/tourism/client/c/wxticket/info', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** 分页 GET /tourism/client/c/wxticket/page */
export async function pageUsingGet4({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.pageUsingGET4Params;
  options?: CustomRequestOptions;
}) {
  return request<API.CommonResultPageTicket_>(
    '/tourism/client/c/wxticket/page',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}
